package com.ctshk.rpc.certificate.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.model.PageResponse;
import com.ctshk.common.model.TokenUser;
import com.ctshk.rpc.certificate.dto.BusinessDTO;
import com.ctshk.rpc.certificate.dto.BusinessDetailDTO;
import com.ctshk.rpc.certificate.dto.CertificateDTO;
import com.ctshk.rpc.certificate.dto.CertificateInfoDTO;
import com.ctshk.rpc.certificate.req.BusinessHallDescReq;
import com.ctshk.rpc.certificate.req.CertificatePageReq;
import com.ctshk.rpc.certificate.req.CertificateReq;

import java.util.List;

/**
 * <p>
 * 证件业务 服务类
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-03-19
 */
public interface ICertificateBusinessService {

    /**
     * 添加证件办理信息
     * @param certificateReq
     * @param user
     */
    Result saveCertificate(CertificateReq certificateReq, TokenUser user);

    /**
     * 更新证件办理信息
     * @param certificateReq
     * @param user
     */
    Result updateCertificate(CertificateReq certificateReq, TokenUser user);

    /**
     * 查询信息列表
     * @param certificateReq
     */
    PageResponse<CertificateDTO> queryList(CertificatePageReq certificateReq);

    /**
     * 查询信息详情
     * @param id
     */
    CertificateInfoDTO queryDetail(Long id);


    /**
     * 根据业务id 查询办证中心
     * @param businessId
     * @return
     */
    List<BusinessDTO> queryBusinessHall(Long businessId);

    BusinessDetailDTO queryBusinessHallDesc(BusinessHallDescReq req);
}
